package practice.Day4;

import java.util.Scanner;

/**
 * @Author quan
 * @Description 计算糖果：有思路，代码细节存在问题：怎么输入是一行，并用空格隔开？
 * @Date 2023/5/12 8:32
 */
public class Num1_CalculateCandy {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            int d = sc.nextInt();

            int A = (a+c)/2;
            int B = (b+d)/2;
            int C = -((a+b+c)-2*A-B);
            if((A>=-30 && A<=30) || (B>=-30 && B<=30) || (C>=-30 && C<=30)){
                System.out.print(A+" "+B+" "+C);
            }else{
                System.out.println("No");
            }
        }
    }
}
